package com.erp.business.groupuser
{
	import com.adobe.cairngorm.business.ServiceLocator;

	import mx.rpc.IResponder;

	import com.erp.vo.ErpbaseGroup;

	import mx.controls.Alert;

	public class GroupDelegate
	{
		public var responder:IResponder;
		public var service:Object;

		public function GroupDelegate(responder:IResponder)
		{
			this.service=ServiceLocator.getInstance().getRemoteObject("groupService");
			this.responder=responder;
		}

		public function addGroup(group:ErpbaseGroup):void
		{
			var call:Object=service.addGroup(group);
			call.addResponder(responder);
		}

		public function getUserArray():void
		{
			var call:Object=service.getUserArray("aaa");
			call.addResponder(responder);
		}
	}
}